package cn.founder.user.domain;

import cn.founder.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User extends BaseDomain {
    //id继承父类
    private String username;
    private String email;
    private String phone;
    //盐值
    private String salt;
    //盐值加密后的密码
    private String password;
    private Integer state = 1;//默认启用  1  0禁用
    private Integer age;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createtime = new Date();
    private String headImg;
    private Long logininfo_id;
}
